home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Prog / Q-R / Regexp.sea / regerror.c < prev    next >
Encoding:
C/C++ Source or Header  |  1991-04-10  |  232 b   |  18 lines  |  [TEXT/KAHL]

  1. #include "stdio.h"
  2. #include    "regexp.h"
  3. #include    "regproto.h"
  4. #include    "stdlib.h"
  5.  
  6. void
  7. regerror(s)
  8. char *s;
  9. {
  10. #ifdef ERRAVAIL
  11.     error("regexp: %s", s);
  12. #else
  13.     fprintf(stderr, "regexp(3): %s", s);
  14.     exit(1);
  15. #endif
  16.     /* NOTREACHED */
  17. }
  18.